#include "User.h"

User::User()
{
    userId = INVALID;
}

User::UserType User::getUserType()
{
    return type;
}

PersonInfo * User::getInfo()
{
    return &info;
}

int User::getId()
{
    return userId;
}

void User::setUserId(int id)
{
    userId = id;
}

void User::setInfo(PersonInfo info)
{
    this->info = info;
}

void User::setUsername(QString name)
{
    username = name.toStdString();
}
